package com.cos.ssm2.services.impl;

import com.cos.ssm2.common.ResponseResult;
import com.cos.ssm2.dao.DeptDao;
import com.cos.ssm2.entity.Dept;
import com.cos.ssm2.services.DeptServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: COS
 * @time: 2022/6/10 17:15
 * @description:
 */
@Service
public class DeptServicesImpl implements DeptServices {
    @Autowired
    private DeptDao deptDao;

    @Override
    public ResponseResult getAll() {
        return ResponseResult.createSuccess(deptDao.getAll());
    }
}
